package com.ks.service;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ks.base.BaseService;
import com.ks.dao.PaperQuestionDao;

@Service("paperQuestionService")
public class PaperQuestionService<T> extends BaseService<T> {
    private final static Logger log = Logger.getLogger(PaperQuestionService.class);

    @Autowired
    private PaperQuestionDao<T> dao;

    public PaperQuestionDao<T> getDao() {
        return dao;
    }

    public void deleteByPaperid(Integer paper_id) {
         dao.deleteByPaperid(paper_id);
    }

    public Integer queryListByPaperId(Object o){
        return dao.queryListByPaperId(o);
    }
}
